﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Krile.Kernel;

namespace Highkick.Config
{
    public class Account
    {
        public string Id = String.Empty;

        [XmlIgnore()]
        public string Password = String.Empty;

        public string PassEncrypted
        {
            get { return Bridge.CommonOperation.AESEncrypt(Password); }
            set { Password = Bridge.CommonOperation.AESDecrypt(value); }
        }
    }
}
